import random
import hashlib
import requests


urls = [f'https://httpbin.org/get?value={random.randint(1,10)}' for i in range(10)]

requested_url = set()
for url in urls:
    if url not in requested_url:
        requested_url.add(url)
        response = requests.get(url)
        print(response.json())
    else:
        print(f'{url}已请求')

requested_text = set()
datas = [{'id':101, 'value':1},{'id':102, 'value':2},{'id':103, 'value':3}, {'id':1, 'value':1}]
urls = [f'https://httpbin.org/post?data={data}'for data in datas]
for url in urls:
    response = requests.get(url)
    print(response.json())

